using com.byt.suce.db.dao;
using System;
using System.Data;
using System.Data.Common;
using com.byt.webcore;
using System.Collections.Generic;
using MYLSOFT.JsonSimple;
using System.Data.SqlClient;

namespace com.byt.suce.db.mapper {

    public class PkgSeguridad : AbstractDataAccessObject , IPkgSeguridad {

        public PkgSeguridad() {
        }

        public PkgSeguridad.AppDeleteParam appDelete(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.AppDeleteParam param = newAppDeleteParam(map);
            appDelete(conn, param);
            return param;
        }

        public PkgSeguridad.AppDeleteParam appDelete(Connection conn, JSONObject json) {
            PkgSeguridad.AppDeleteParam param = newAppDeleteParam(json);
            appDelete(conn, param);
            return param;
        }

        public PkgSeguridad.AppDeleteParam appDelete(Connection conn) {
            PkgSeguridad.AppDeleteParam param = newAppDeleteParam();
            appDelete(conn, param);
            return param;
        }

        public void appDelete(Connection conn, PkgSeguridad.AppDeleteParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_app_delete";
            DbParameter par = null;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.AppGetbyidParam appGetbyid(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.AppGetbyidParam param = newAppGetbyidParam(map);
            appGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetbyidParam appGetbyid(Connection conn, JSONObject json) {
            PkgSeguridad.AppGetbyidParam param = newAppGetbyidParam(json);
            appGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetbyidParam appGetbyid(Connection conn) {
            PkgSeguridad.AppGetbyidParam param = newAppGetbyidParam();
            appGetbyid(conn, param);
            return param;
        }

        public void appGetbyid(Connection conn, PkgSeguridad.AppGetbyidParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_app_getbyid";
            DbParameter par = null;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.AppGetinfoParam appGetinfo(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.AppGetinfoParam param = newAppGetinfoParam(map);
            appGetinfo(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetinfoParam appGetinfo(Connection conn, JSONObject json) {
            PkgSeguridad.AppGetinfoParam param = newAppGetinfoParam(json);
            appGetinfo(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetinfoParam appGetinfo(Connection conn) {
            PkgSeguridad.AppGetinfoParam param = newAppGetinfoParam();
            appGetinfo(conn, param);
            return param;
        }

        public void appGetinfo(Connection conn, PkgSeguridad.AppGetinfoParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_app_getinfo";
            DbParameter par = null;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.AppGetlistParam appGetlist(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.AppGetlistParam param = newAppGetlistParam(map);
            appGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetlistParam appGetlist(Connection conn, JSONObject json) {
            PkgSeguridad.AppGetlistParam param = newAppGetlistParam(json);
            appGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.AppGetlistParam appGetlist(Connection conn) {
            PkgSeguridad.AppGetlistParam param = newAppGetlistParam();
            appGetlist(conn, param);
            return param;
        }

        public void appGetlist(Connection conn, PkgSeguridad.AppGetlistParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_app_getlist";
            DbParameter par = null;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.AppUpdateParam appUpdate(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.AppUpdateParam param = newAppUpdateParam(map);
            appUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.AppUpdateParam appUpdate(Connection conn, JSONObject json) {
            PkgSeguridad.AppUpdateParam param = newAppUpdateParam(json);
            appUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.AppUpdateParam appUpdate(Connection conn) {
            PkgSeguridad.AppUpdateParam param = newAppUpdateParam();
            appUpdate(conn, param);
            return param;
        }

        public void appUpdate(Connection conn, PkgSeguridad.AppUpdateParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_app_update";
            DbParameter par = null;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // vccodigo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vccodigo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 100;
            if (string.IsNullOrEmpty(param.Vccodigo))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vccodigo;
            // vcurl
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcurl";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 200;
            if (string.IsNullOrEmpty(param.Vcurl))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcurl;
            // vctitulo
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vctitulo";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 200;
            if (string.IsNullOrEmpty(param.Vctitulo))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vctitulo;
            // vcdesc
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcdesc";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Vcdesc))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcdesc;
            // vcimage
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcimage";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 200;
            if (string.IsNullOrEmpty(param.Vcimage))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcimage;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.MenuDeleteParam menuDelete(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuDeleteParam param = newMenuDeleteParam(map);
            menuDelete(conn, param);
            return param;
        }

        public PkgSeguridad.MenuDeleteParam menuDelete(Connection conn, JSONObject json) {
            PkgSeguridad.MenuDeleteParam param = newMenuDeleteParam(json);
            menuDelete(conn, param);
            return param;
        }

        public PkgSeguridad.MenuDeleteParam menuDelete(Connection conn) {
            PkgSeguridad.MenuDeleteParam param = newMenuDeleteParam();
            menuDelete(conn, param);
            return param;
        }

        public void menuDelete(Connection conn, PkgSeguridad.MenuDeleteParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_delete";
            DbParameter par = null;
            // idmenu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenu";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenu == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenu;
            // fgcascade
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fgcascade";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 1;
            if (string.IsNullOrEmpty(param.Fgcascade))
                par.Value = DBNull.Value;
            else
                par.Value = param.Fgcascade;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.MenuGetbyidParam menuGetbyid(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuGetbyidParam param = newMenuGetbyidParam(map);
            menuGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGetbyidParam menuGetbyid(Connection conn, JSONObject json) {
            PkgSeguridad.MenuGetbyidParam param = newMenuGetbyidParam(json);
            menuGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGetbyidParam menuGetbyid(Connection conn) {
            PkgSeguridad.MenuGetbyidParam param = newMenuGetbyidParam();
            menuGetbyid(conn, param);
            return param;
        }

        public void menuGetbyid(Connection conn, PkgSeguridad.MenuGetbyidParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_getbyid";
            DbParameter par = null;
            // idmenu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenu";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenu == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenu;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // cur_permisos
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_permisos";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
            param.CurPermisos = (DbDataReader)ds.Tables[1].CreateDataReader();
        }

        public PkgSeguridad.MenuGetrolesParam menuGetroles(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuGetrolesParam param = newMenuGetrolesParam(map);
            menuGetroles(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGetrolesParam menuGetroles(Connection conn, JSONObject json) {
            PkgSeguridad.MenuGetrolesParam param = newMenuGetrolesParam(json);
            menuGetroles(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGetrolesParam menuGetroles(Connection conn) {
            PkgSeguridad.MenuGetrolesParam param = newMenuGetrolesParam();
            menuGetroles(conn, param);
            return param;
        }

        public void menuGetroles(Connection conn, PkgSeguridad.MenuGetrolesParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_getroles";
            DbParameter par = null;
            // idmenu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenu";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenu == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenu;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.MenuGettreeParam menuGettree(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuGettreeParam param = newMenuGettreeParam(map);
            menuGettree(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGettreeParam menuGettree(Connection conn, JSONObject json) {
            PkgSeguridad.MenuGettreeParam param = newMenuGettreeParam(json);
            menuGettree(conn, param);
            return param;
        }

        public PkgSeguridad.MenuGettreeParam menuGettree(Connection conn) {
            PkgSeguridad.MenuGettreeParam param = newMenuGettreeParam();
            menuGettree(conn, param);
            return param;
        }

        public void menuGettree(Connection conn, PkgSeguridad.MenuGettreeParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_gettree";
            DbParameter par = null;
            // idmenusup
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenusup";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenusup == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenusup;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.MenuRegeneraParam menuRegenera(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuRegeneraParam param = newMenuRegeneraParam(map);
            menuRegenera(conn, param);
            return param;
        }

        public PkgSeguridad.MenuRegeneraParam menuRegenera(Connection conn, JSONObject json) {
            PkgSeguridad.MenuRegeneraParam param = newMenuRegeneraParam(json);
            menuRegenera(conn, param);
            return param;
        }

        public PkgSeguridad.MenuRegeneraParam menuRegenera(Connection conn) {
            PkgSeguridad.MenuRegeneraParam param = newMenuRegeneraParam();
            menuRegenera(conn, param);
            return param;
        }

        public void menuRegenera(Connection conn, PkgSeguridad.MenuRegeneraParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_regenera";
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.MenuUpdateParam menuUpdate(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.MenuUpdateParam param = newMenuUpdateParam(map);
            menuUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.MenuUpdateParam menuUpdate(Connection conn, JSONObject json) {
            PkgSeguridad.MenuUpdateParam param = newMenuUpdateParam(json);
            menuUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.MenuUpdateParam menuUpdate(Connection conn) {
            PkgSeguridad.MenuUpdateParam param = newMenuUpdateParam();
            menuUpdate(conn, param);
            return param;
        }

        public void menuUpdate(Connection conn, PkgSeguridad.MenuUpdateParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_menu_update";
            DbParameter par = null;
            // idmenu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenu";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenu == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenu;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // idmenusup
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idmenusup";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idmenusup == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idmenusup;
            // inorden
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@inorden";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Inorden == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Inorden;
            // vcnombre
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcnombre";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 100;
            if (string.IsNullOrEmpty(param.Vcnombre))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcnombre;
            // systype
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@systype";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Systype == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Systype;
            // sysproperties
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@sysproperties";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 0;
            if (string.IsNullOrEmpty(param.Sysproperties))
                par.Value = DBNull.Value;
            else
                par.Value = param.Sysproperties;
            // sysattribute
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@sysattribute";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 10;
            if (string.IsNullOrEmpty(param.Sysattribute))
                par.Value = DBNull.Value;
            else
                par.Value = param.Sysattribute;
            // fgrolesheredable
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@fgrolesheredable";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 2;
            if (string.IsNullOrEmpty(param.Fgrolesheredable))
                par.Value = DBNull.Value;
            else
                par.Value = param.Fgrolesheredable;
            // vcroles
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcroles";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = -1;
            if (string.IsNullOrEmpty(param.Vcroles))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcroles;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.RolDeleteParam rolDelete(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.RolDeleteParam param = newRolDeleteParam(map);
            rolDelete(conn, param);
            return param;
        }

        public PkgSeguridad.RolDeleteParam rolDelete(Connection conn, JSONObject json) {
            PkgSeguridad.RolDeleteParam param = newRolDeleteParam(json);
            rolDelete(conn, param);
            return param;
        }

        public PkgSeguridad.RolDeleteParam rolDelete(Connection conn) {
            PkgSeguridad.RolDeleteParam param = newRolDeleteParam();
            rolDelete(conn, param);
            return param;
        }

        public void rolDelete(Connection conn, PkgSeguridad.RolDeleteParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_rol_delete";
            DbParameter par = null;
            // idrol
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idrol";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idrol == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idrol;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.RolGetbyidParam rolGetbyid(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.RolGetbyidParam param = newRolGetbyidParam(map);
            rolGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.RolGetbyidParam rolGetbyid(Connection conn, JSONObject json) {
            PkgSeguridad.RolGetbyidParam param = newRolGetbyidParam(json);
            rolGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.RolGetbyidParam rolGetbyid(Connection conn) {
            PkgSeguridad.RolGetbyidParam param = newRolGetbyidParam();
            rolGetbyid(conn, param);
            return param;
        }

        public void rolGetbyid(Connection conn, PkgSeguridad.RolGetbyidParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_rol_getbyid";
            DbParameter par = null;
            // idrol
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idrol";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idrol == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idrol;
            // cur_form
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_form";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // cur_actividades
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_actividades";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurForm = (DbDataReader)ds.Tables[0].CreateDataReader();
            param.CurActividades = (DbDataReader)ds.Tables[1].CreateDataReader();
        }

        public PkgSeguridad.RolGetlistParam rolGetlist(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.RolGetlistParam param = newRolGetlistParam(map);
            rolGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.RolGetlistParam rolGetlist(Connection conn, JSONObject json) {
            PkgSeguridad.RolGetlistParam param = newRolGetlistParam(json);
            rolGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.RolGetlistParam rolGetlist(Connection conn) {
            PkgSeguridad.RolGetlistParam param = newRolGetlistParam();
            rolGetlist(conn, param);
            return param;
        }

        public void rolGetlist(Connection conn, PkgSeguridad.RolGetlistParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_rol_getlist";
            DbParameter par = null;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.RolUpdateParam rolUpdate(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.RolUpdateParam param = newRolUpdateParam(map);
            rolUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.RolUpdateParam rolUpdate(Connection conn, JSONObject json) {
            PkgSeguridad.RolUpdateParam param = newRolUpdateParam(json);
            rolUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.RolUpdateParam rolUpdate(Connection conn) {
            PkgSeguridad.RolUpdateParam param = newRolUpdateParam();
            rolUpdate(conn, param);
            return param;
        }

        public void rolUpdate(Connection conn, PkgSeguridad.RolUpdateParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_rol_update";
            DbParameter par = null;
            // idrol
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idrol";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idrol == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idrol;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // vcnombre
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcnombre";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 500;
            if (string.IsNullOrEmpty(param.Vcnombre))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcnombre;
            // vcdesc
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcdesc";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Vcdesc))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcdesc;
            // actividades
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@actividades";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 4000;
            if (string.IsNullOrEmpty(param.Actividades))
                par.Value = DBNull.Value;
            else
                par.Value = param.Actividades;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.UserChangepasswordParam userChangepassword(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserChangepasswordParam param = newUserChangepasswordParam(map);
            userChangepassword(conn, param);
            return param;
        }

        public PkgSeguridad.UserChangepasswordParam userChangepassword(Connection conn, JSONObject json) {
            PkgSeguridad.UserChangepasswordParam param = newUserChangepasswordParam(json);
            userChangepassword(conn, param);
            return param;
        }

        public PkgSeguridad.UserChangepasswordParam userChangepassword(Connection conn) {
            PkgSeguridad.UserChangepasswordParam param = newUserChangepasswordParam();
            userChangepassword(conn, param);
            return param;
        }

        public void userChangepassword(Connection conn, PkgSeguridad.UserChangepasswordParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_changepassword";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // vcpass
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcpass";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 128;
            if (string.IsNullOrEmpty(param.Vcpass))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcpass;
            // vcpasssalt
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@vcpasssalt";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 128;
            if (string.IsNullOrEmpty(param.Vcpasssalt))
                par.Value = DBNull.Value;
            else
                par.Value = param.Vcpasssalt;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.UserDeleteParam userDelete(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserDeleteParam param = newUserDeleteParam(map);
            userDelete(conn, param);
            return param;
        }

        public PkgSeguridad.UserDeleteParam userDelete(Connection conn, JSONObject json) {
            PkgSeguridad.UserDeleteParam param = newUserDeleteParam(json);
            userDelete(conn, param);
            return param;
        }

        public PkgSeguridad.UserDeleteParam userDelete(Connection conn) {
            PkgSeguridad.UserDeleteParam param = newUserDeleteParam();
            userDelete(conn, param);
            return param;
        }

        public void userDelete(Connection conn, PkgSeguridad.UserDeleteParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_delete";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            cmd.ExecuteNonQuery();
        }

        public PkgSeguridad.UserGetbyidParam userGetbyid(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserGetbyidParam param = newUserGetbyidParam(map);
            userGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetbyidParam userGetbyid(Connection conn, JSONObject json) {
            PkgSeguridad.UserGetbyidParam param = newUserGetbyidParam(json);
            userGetbyid(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetbyidParam userGetbyid(Connection conn) {
            PkgSeguridad.UserGetbyidParam param = newUserGetbyidParam();
            userGetbyid(conn, param);
            return param;
        }

        public void userGetbyid(Connection conn, PkgSeguridad.UserGetbyidParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_getbyid";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // cur_form
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_form";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // cur_rol
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_rol";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurForm = (DbDataReader)ds.Tables[0].CreateDataReader();
            param.CurRol = (DbDataReader)ds.Tables[1].CreateDataReader();
        }

        public PkgSeguridad.UserGetdataParam userGetdata(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserGetdataParam param = newUserGetdataParam(map);
            userGetdata(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetdataParam userGetdata(Connection conn, JSONObject json) {
            PkgSeguridad.UserGetdataParam param = newUserGetdataParam(json);
            userGetdata(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetdataParam userGetdata(Connection conn) {
            PkgSeguridad.UserGetdataParam param = newUserGetdataParam();
            userGetdata(conn, param);
            return param;
        }

        public void userGetdata(Connection conn, PkgSeguridad.UserGetdataParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_getdata";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // idapp
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idapp";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idapp == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idapp;
            // cur_header
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_header";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // cur_menu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_menu";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            // cur_startmenu
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_startmenu";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurHeader = (DbDataReader)ds.Tables[0].CreateDataReader();
            param.CurMenu = (DbDataReader)ds.Tables[1].CreateDataReader();
            param.CurStartmenu = (DbDataReader)ds.Tables[2].CreateDataReader();
        }

        public PkgSeguridad.UserGetlistParam userGetlist(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserGetlistParam param = newUserGetlistParam(map);
            userGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetlistParam userGetlist(Connection conn, JSONObject json) {
            PkgSeguridad.UserGetlistParam param = newUserGetlistParam(json);
            userGetlist(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetlistParam userGetlist(Connection conn) {
            PkgSeguridad.UserGetlistParam param = newUserGetlistParam();
            userGetlist(conn, param);
            return param;
        }

        public void userGetlist(Connection conn, PkgSeguridad.UserGetlistParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_getlist";
            DbParameter par = null;
            // idorgentidad
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@idorgentidad";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Idorgentidad == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Idorgentidad;
            // nombadm
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@nombadm";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 100;
            if (string.IsNullOrEmpty(param.Nombadm))
                par.Value = DBNull.Value;
            else
                par.Value = param.Nombadm;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.UserGetlistComboParam userGetlistCombo(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserGetlistComboParam param = newUserGetlistComboParam(map);
            userGetlistCombo(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetlistComboParam userGetlistCombo(Connection conn, JSONObject json) {
            PkgSeguridad.UserGetlistComboParam param = newUserGetlistComboParam(json);
            userGetlistCombo(conn, param);
            return param;
        }

        public PkgSeguridad.UserGetlistComboParam userGetlistCombo(Connection conn) {
            PkgSeguridad.UserGetlistComboParam param = newUserGetlistComboParam();
            userGetlistCombo(conn, param);
            return param;
        }

        public void userGetlistCombo(Connection conn, PkgSeguridad.UserGetlistComboParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_getlist_combo";
            DbParameter par = null;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.UserLoginParam userLogin(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserLoginParam param = newUserLoginParam(map);
            userLogin(conn, param);
            return param;
        }

        public PkgSeguridad.UserLoginParam userLogin(Connection conn, JSONObject json) {
            PkgSeguridad.UserLoginParam param = newUserLoginParam(json);
            userLogin(conn, param);
            return param;
        }

        public PkgSeguridad.UserLoginParam userLogin(Connection conn) {
            PkgSeguridad.UserLoginParam param = newUserLoginParam();
            userLogin(conn, param);
            return param;
        }

        public void userLogin(Connection conn, PkgSeguridad.UserLoginParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_login";
            DbParameter par = null;
            // usrname
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@usrname";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = 200;
            if (string.IsNullOrEmpty(param.Usrname))
                par.Value = DBNull.Value;
            else
                par.Value = param.Usrname;
            // cur_out
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@cur_out";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Object;
            par.Value = DBNull.Value;
            DataSet ds = new DataSet();
            DataAdapter da = new SqlDataAdapter((SqlCommand)cmd);
            da.Fill(ds);
            param.CurOut = (DbDataReader)ds.Tables[0].CreateDataReader();
        }

        public PkgSeguridad.UserUpdateParam userUpdate(Connection conn, Dictionary<string, string> map) {
            PkgSeguridad.UserUpdateParam param = newUserUpdateParam(map);
            userUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.UserUpdateParam userUpdate(Connection conn, JSONObject json) {
            PkgSeguridad.UserUpdateParam param = newUserUpdateParam(json);
            userUpdate(conn, param);
            return param;
        }

        public PkgSeguridad.UserUpdateParam userUpdate(Connection conn) {
            PkgSeguridad.UserUpdateParam param = newUserUpdateParam();
            userUpdate(conn, param);
            return param;
        }

        public void userUpdate(Connection conn, PkgSeguridad.UserUpdateParam param) {
            DbCommand cmd = conn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "[dbo].SEG_user_update";
            DbParameter par = null;
            // iduser
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@iduser";
            par.Direction = ParameterDirection.InputOutput;
            par.DbType = DbType.Int32;
            if (param.Iduser == null)
                par.Value = DBNull.Value;
            else
                par.Value = param.Iduser;
            // roles
            par = cmd.CreateParameter();
            cmd.Parameters.Add(par);
            par.ParameterName = "@roles";
            par.Direction = ParameterDirection.Input;
            par.DbType = DbType.String;
            par.Size = -1;
            if (string.IsNullOrEmpty(param.Roles))
                par.Value = DBNull.Value;
            else
                par.Value = param.Roles;
            cmd.ExecuteNonQuery();
            if(DBNull.Value.Equals(cmd.Parameters["@iduser"].Value))
                param.Iduser = null;
            else
                param.Iduser = (int?)cmd.Parameters["@iduser"].Value;
        }

        public PkgSeguridad.AppDeleteParam newAppDeleteParam() {
            return new AppDeleteParam();
        }

        public PkgSeguridad.AppDeleteParam newAppDeleteParam(Dictionary<string, string> map) {
            return new AppDeleteParam(map);
        }

        public PkgSeguridad.AppDeleteParam newAppDeleteParam(JSONObject json) {
            return new AppDeleteParam(json);
        }

        public PkgSeguridad.AppGetbyidParam newAppGetbyidParam() {
            return new AppGetbyidParam();
        }

        public PkgSeguridad.AppGetbyidParam newAppGetbyidParam(Dictionary<string, string> map) {
            return new AppGetbyidParam(map);
        }

        public PkgSeguridad.AppGetbyidParam newAppGetbyidParam(JSONObject json) {
            return new AppGetbyidParam(json);
        }

        public PkgSeguridad.AppGetinfoParam newAppGetinfoParam() {
            return new AppGetinfoParam();
        }

        public PkgSeguridad.AppGetinfoParam newAppGetinfoParam(Dictionary<string, string> map) {
            return new AppGetinfoParam(map);
        }

        public PkgSeguridad.AppGetinfoParam newAppGetinfoParam(JSONObject json) {
            return new AppGetinfoParam(json);
        }

        public PkgSeguridad.AppGetlistParam newAppGetlistParam() {
            return new AppGetlistParam();
        }

        public PkgSeguridad.AppGetlistParam newAppGetlistParam(Dictionary<string, string> map) {
            return new AppGetlistParam(map);
        }

        public PkgSeguridad.AppGetlistParam newAppGetlistParam(JSONObject json) {
            return new AppGetlistParam(json);
        }

        public PkgSeguridad.AppUpdateParam newAppUpdateParam() {
            return new AppUpdateParam();
        }

        public PkgSeguridad.AppUpdateParam newAppUpdateParam(Dictionary<string, string> map) {
            return new AppUpdateParam(map);
        }

        public PkgSeguridad.AppUpdateParam newAppUpdateParam(JSONObject json) {
            return new AppUpdateParam(json);
        }

        public PkgSeguridad.MenuDeleteParam newMenuDeleteParam() {
            return new MenuDeleteParam();
        }

        public PkgSeguridad.MenuDeleteParam newMenuDeleteParam(Dictionary<string, string> map) {
            return new MenuDeleteParam(map);
        }

        public PkgSeguridad.MenuDeleteParam newMenuDeleteParam(JSONObject json) {
            return new MenuDeleteParam(json);
        }

        public PkgSeguridad.MenuGetbyidParam newMenuGetbyidParam() {
            return new MenuGetbyidParam();
        }

        public PkgSeguridad.MenuGetbyidParam newMenuGetbyidParam(Dictionary<string, string> map) {
            return new MenuGetbyidParam(map);
        }

        public PkgSeguridad.MenuGetbyidParam newMenuGetbyidParam(JSONObject json) {
            return new MenuGetbyidParam(json);
        }

        public PkgSeguridad.MenuGetrolesParam newMenuGetrolesParam() {
            return new MenuGetrolesParam();
        }

        public PkgSeguridad.MenuGetrolesParam newMenuGetrolesParam(Dictionary<string, string> map) {
            return new MenuGetrolesParam(map);
        }

        public PkgSeguridad.MenuGetrolesParam newMenuGetrolesParam(JSONObject json) {
            return new MenuGetrolesParam(json);
        }

        public PkgSeguridad.MenuGettreeParam newMenuGettreeParam() {
            return new MenuGettreeParam();
        }

        public PkgSeguridad.MenuGettreeParam newMenuGettreeParam(Dictionary<string, string> map) {
            return new MenuGettreeParam(map);
        }

        public PkgSeguridad.MenuGettreeParam newMenuGettreeParam(JSONObject json) {
            return new MenuGettreeParam(json);
        }

        public PkgSeguridad.MenuRegeneraParam newMenuRegeneraParam() {
            return new MenuRegeneraParam();
        }

        public PkgSeguridad.MenuRegeneraParam newMenuRegeneraParam(Dictionary<string, string> map) {
            return new MenuRegeneraParam(map);
        }

        public PkgSeguridad.MenuRegeneraParam newMenuRegeneraParam(JSONObject json) {
            return new MenuRegeneraParam(json);
        }

        public PkgSeguridad.MenuUpdateParam newMenuUpdateParam() {
            return new MenuUpdateParam();
        }

        public PkgSeguridad.MenuUpdateParam newMenuUpdateParam(Dictionary<string, string> map) {
            return new MenuUpdateParam(map);
        }

        public PkgSeguridad.MenuUpdateParam newMenuUpdateParam(JSONObject json) {
            return new MenuUpdateParam(json);
        }

        public PkgSeguridad.RolDeleteParam newRolDeleteParam() {
            return new RolDeleteParam();
        }

        public PkgSeguridad.RolDeleteParam newRolDeleteParam(Dictionary<string, string> map) {
            return new RolDeleteParam(map);
        }

        public PkgSeguridad.RolDeleteParam newRolDeleteParam(JSONObject json) {
            return new RolDeleteParam(json);
        }

        public PkgSeguridad.RolGetbyidParam newRolGetbyidParam() {
            return new RolGetbyidParam();
        }

        public PkgSeguridad.RolGetbyidParam newRolGetbyidParam(Dictionary<string, string> map) {
            return new RolGetbyidParam(map);
        }

        public PkgSeguridad.RolGetbyidParam newRolGetbyidParam(JSONObject json) {
            return new RolGetbyidParam(json);
        }

        public PkgSeguridad.RolGetlistParam newRolGetlistParam() {
            return new RolGetlistParam();
        }

        public PkgSeguridad.RolGetlistParam newRolGetlistParam(Dictionary<string, string> map) {
            return new RolGetlistParam(map);
        }

        public PkgSeguridad.RolGetlistParam newRolGetlistParam(JSONObject json) {
            return new RolGetlistParam(json);
        }

        public PkgSeguridad.RolUpdateParam newRolUpdateParam() {
            return new RolUpdateParam();
        }

        public PkgSeguridad.RolUpdateParam newRolUpdateParam(Dictionary<string, string> map) {
            return new RolUpdateParam(map);
        }

        public PkgSeguridad.RolUpdateParam newRolUpdateParam(JSONObject json) {
            return new RolUpdateParam(json);
        }

        public PkgSeguridad.UserChangepasswordParam newUserChangepasswordParam() {
            return new UserChangepasswordParam();
        }

        public PkgSeguridad.UserChangepasswordParam newUserChangepasswordParam(Dictionary<string, string> map) {
            return new UserChangepasswordParam(map);
        }

        public PkgSeguridad.UserChangepasswordParam newUserChangepasswordParam(JSONObject json) {
            return new UserChangepasswordParam(json);
        }

        public PkgSeguridad.UserDeleteParam newUserDeleteParam() {
            return new UserDeleteParam();
        }

        public PkgSeguridad.UserDeleteParam newUserDeleteParam(Dictionary<string, string> map) {
            return new UserDeleteParam(map);
        }

        public PkgSeguridad.UserDeleteParam newUserDeleteParam(JSONObject json) {
            return new UserDeleteParam(json);
        }

        public PkgSeguridad.UserGetbyidParam newUserGetbyidParam() {
            return new UserGetbyidParam();
        }

        public PkgSeguridad.UserGetbyidParam newUserGetbyidParam(Dictionary<string, string> map) {
            return new UserGetbyidParam(map);
        }

        public PkgSeguridad.UserGetbyidParam newUserGetbyidParam(JSONObject json) {
            return new UserGetbyidParam(json);
        }

        public PkgSeguridad.UserGetdataParam newUserGetdataParam() {
            return new UserGetdataParam();
        }

        public PkgSeguridad.UserGetdataParam newUserGetdataParam(Dictionary<string, string> map) {
            return new UserGetdataParam(map);
        }

        public PkgSeguridad.UserGetdataParam newUserGetdataParam(JSONObject json) {
            return new UserGetdataParam(json);
        }

        public PkgSeguridad.UserGetlistParam newUserGetlistParam() {
            return new UserGetlistParam();
        }

        public PkgSeguridad.UserGetlistParam newUserGetlistParam(Dictionary<string, string> map) {
            return new UserGetlistParam(map);
        }

        public PkgSeguridad.UserGetlistParam newUserGetlistParam(JSONObject json) {
            return new UserGetlistParam(json);
        }

        public PkgSeguridad.UserGetlistComboParam newUserGetlistComboParam() {
            return new UserGetlistComboParam();
        }

        public PkgSeguridad.UserGetlistComboParam newUserGetlistComboParam(Dictionary<string, string> map) {
            return new UserGetlistComboParam(map);
        }

        public PkgSeguridad.UserGetlistComboParam newUserGetlistComboParam(JSONObject json) {
            return new UserGetlistComboParam(json);
        }

        public PkgSeguridad.UserLoginParam newUserLoginParam() {
            return new UserLoginParam();
        }

        public PkgSeguridad.UserLoginParam newUserLoginParam(Dictionary<string, string> map) {
            return new UserLoginParam(map);
        }

        public PkgSeguridad.UserLoginParam newUserLoginParam(JSONObject json) {
            return new UserLoginParam(json);
        }

        public PkgSeguridad.UserUpdateParam newUserUpdateParam() {
            return new UserUpdateParam();
        }

        public PkgSeguridad.UserUpdateParam newUserUpdateParam(Dictionary<string, string> map) {
            return new UserUpdateParam(map);
        }

        public PkgSeguridad.UserUpdateParam newUserUpdateParam(JSONObject json) {
            return new UserUpdateParam(json);
        }

        public class AppDeleteParam {

            private int? idapp;

            public AppDeleteParam() {
            }

            public AppDeleteParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public AppDeleteParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class AppGetbyidParam {

            private int? idapp;
            private DbDataReader curOut;

            public AppGetbyidParam() {
            }

            public AppGetbyidParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public AppGetbyidParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class AppGetinfoParam {

            private int? idapp;
            private DbDataReader curOut;

            public AppGetinfoParam() {
            }

            public AppGetinfoParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public AppGetinfoParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class AppGetlistParam {

            private DbDataReader curOut;

            public AppGetlistParam() {
            }

            public AppGetlistParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public AppGetlistParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class AppUpdateParam {

            private int? idapp;
            private string vccodigo;
            private string vcurl;
            private string vctitulo;
            private string vcdesc;
            private string vcimage;

            public AppUpdateParam() {
            }

            public AppUpdateParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public AppUpdateParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public string Vccodigo {
                get { return vccodigo; }
                set { this.vccodigo = value; }
            }

            public string Vcurl {
                get { return vcurl; }
                set { this.vcurl = value; }
            }

            public string Vctitulo {
                get { return vctitulo; }
                set { this.vctitulo = value; }
            }

            public string Vcdesc {
                get { return vcdesc; }
                set { this.vcdesc = value; }
            }

            public string Vcimage {
                get { return vcimage; }
                set { this.vcimage = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuDeleteParam {

            private int? idmenu;
            private string fgcascade;

            public MenuDeleteParam() {
            }

            public MenuDeleteParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuDeleteParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idmenu {
                get { return idmenu; }
                set { this.idmenu = value; }
            }

            public string Fgcascade {
                get { return fgcascade; }
                set { this.fgcascade = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuGetbyidParam {

            private int? idmenu;
            private DbDataReader curOut;
            private DbDataReader curPermisos;

            public MenuGetbyidParam() {
            }

            public MenuGetbyidParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuGetbyidParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idmenu {
                get { return idmenu; }
                set { this.idmenu = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public DbDataReader CurPermisos {
                get { return curPermisos; }
                set { this.curPermisos = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuGetrolesParam {

            private int? idmenu;
            private DbDataReader curOut;

            public MenuGetrolesParam() {
            }

            public MenuGetrolesParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuGetrolesParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idmenu {
                get { return idmenu; }
                set { this.idmenu = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuGettreeParam {

            private int? idmenusup;
            private DbDataReader curOut;

            public MenuGettreeParam() {
            }

            public MenuGettreeParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuGettreeParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idmenusup {
                get { return idmenusup; }
                set { this.idmenusup = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuRegeneraParam {

            public MenuRegeneraParam() {
            }

            public MenuRegeneraParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuRegeneraParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class MenuUpdateParam {

            private int? idmenu;
            private int? idapp;
            private int? idmenusup;
            private int? inorden;
            private string vcnombre;
            private int? systype;
            private string sysproperties;
            private string sysattribute;
            private string fgrolesheredable;
            private string vcroles;

            public MenuUpdateParam() {
            }

            public MenuUpdateParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public MenuUpdateParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idmenu {
                get { return idmenu; }
                set { this.idmenu = value; }
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public int? Idmenusup {
                get { return idmenusup; }
                set { this.idmenusup = value; }
            }

            public int? Inorden {
                get { return inorden; }
                set { this.inorden = value; }
            }

            public string Vcnombre {
                get { return vcnombre; }
                set { this.vcnombre = value; }
            }

            public int? Systype {
                get { return systype; }
                set { this.systype = value; }
            }

            public string Sysproperties {
                get { return sysproperties; }
                set { this.sysproperties = value; }
            }

            public string Sysattribute {
                get { return sysattribute; }
                set { this.sysattribute = value; }
            }

            public string Fgrolesheredable {
                get { return fgrolesheredable; }
                set { this.fgrolesheredable = value; }
            }

            public string Vcroles {
                get { return vcroles; }
                set { this.vcroles = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class RolDeleteParam {

            private int? idrol;

            public RolDeleteParam() {
            }

            public RolDeleteParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public RolDeleteParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idrol {
                get { return idrol; }
                set { this.idrol = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class RolGetbyidParam {

            private int? idrol;
            private DbDataReader curForm;
            private DbDataReader curActividades;

            public RolGetbyidParam() {
            }

            public RolGetbyidParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public RolGetbyidParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idrol {
                get { return idrol; }
                set { this.idrol = value; }
            }

            public DbDataReader CurForm {
                get { return curForm; }
                set { this.curForm = value; }
            }

            public DbDataReader CurActividades {
                get { return curActividades; }
                set { this.curActividades = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class RolGetlistParam {

            private int? idapp;
            private DbDataReader curOut;

            public RolGetlistParam() {
            }

            public RolGetlistParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public RolGetlistParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class RolUpdateParam {

            private int? idrol;
            private int? idapp;
            private string vcnombre;
            private string vcdesc;
            private string actividades;

            public RolUpdateParam() {
            }

            public RolUpdateParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public RolUpdateParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idrol {
                get { return idrol; }
                set { this.idrol = value; }
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public string Vcnombre {
                get { return vcnombre; }
                set { this.vcnombre = value; }
            }

            public string Vcdesc {
                get { return vcdesc; }
                set { this.vcdesc = value; }
            }

            public string Actividades {
                get { return actividades; }
                set { this.actividades = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserChangepasswordParam {

            private int? iduser;
            private string vcpass;
            private string vcpasssalt;

            public UserChangepasswordParam() {
            }

            public UserChangepasswordParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserChangepasswordParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public string Vcpass {
                get { return vcpass; }
                set { this.vcpass = value; }
            }

            public string Vcpasssalt {
                get { return vcpasssalt; }
                set { this.vcpasssalt = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserDeleteParam {

            private int? iduser;

            public UserDeleteParam() {
            }

            public UserDeleteParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserDeleteParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserGetbyidParam {

            private int? iduser;
            private DbDataReader curForm;
            private DbDataReader curRol;

            public UserGetbyidParam() {
            }

            public UserGetbyidParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserGetbyidParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public DbDataReader CurForm {
                get { return curForm; }
                set { this.curForm = value; }
            }

            public DbDataReader CurRol {
                get { return curRol; }
                set { this.curRol = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserGetdataParam {

            private int? iduser;
            private int? idapp;
            private DbDataReader curHeader;
            private DbDataReader curMenu;
            private DbDataReader curStartmenu;

            public UserGetdataParam() {
            }

            public UserGetdataParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserGetdataParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public int? Idapp {
                get { return idapp; }
                set { this.idapp = value; }
            }

            public DbDataReader CurHeader {
                get { return curHeader; }
                set { this.curHeader = value; }
            }

            public DbDataReader CurMenu {
                get { return curMenu; }
                set { this.curMenu = value; }
            }

            public DbDataReader CurStartmenu {
                get { return curStartmenu; }
                set { this.curStartmenu = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserGetlistParam {

            private int? idorgentidad;
            private string nombadm;
            private int? iduser;
            private DbDataReader curOut;

            public UserGetlistParam() {
            }

            public UserGetlistParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserGetlistParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Idorgentidad {
                get { return idorgentidad; }
                set { this.idorgentidad = value; }
            }

            public string Nombadm {
                get { return nombadm; }
                set { this.nombadm = value; }
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserGetlistComboParam {

            private DbDataReader curOut;

            public UserGetlistComboParam() {
            }

            public UserGetlistComboParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserGetlistComboParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserLoginParam {

            private string usrname;
            private DbDataReader curOut;

            public UserLoginParam() {
            }

            public UserLoginParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserLoginParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public string Usrname {
                get { return usrname; }
                set { this.usrname = value; }
            }

            public DbDataReader CurOut {
                get { return curOut; }
                set { this.curOut = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

        public class UserUpdateParam {

            private int? iduser;
            private string roles;

            public UserUpdateParam() {
            }

            public UserUpdateParam(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public UserUpdateParam(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

            public int? Iduser {
                get { return iduser; }
                set { this.iduser = value; }
            }

            public string Roles {
                get { return roles; }
                set { this.roles = value; }
            }

            public void setValuesFromMap(Dictionary<string, string> map) {
                ResourceManager.populateDtoFromMap(this, map);
            }

            public void setValuesFromMap(JSONObject json) {
                ResourceManager.populateDtoFromMap(this, json);
            }

        }

    }
}
